import request from '@/utils/request'

export default {
  workshopList(params) {
    return request({
      url: '/v1/workshopList/1',
      method: 'get',
      params
    })
  },
  getOne(id) {
    return request({
      url: `/v1/workshop/${id}`,
      method: 'get'
    })
  },
  update(data) {
    return request({
      url: '/v1/workshopUpdate',
      method: 'post',
      data
    })
  },
  create(data) {
    return request({
      url: '/v1/workshopAdd',
      method: 'post',
      data
    })
  },
  delete(id) {
    return request({
      url: `/v1/workshopDel/${id}`,
      method: 'get'
    })
  },
  otherAdmin(data) {
    return request({
      url: '/v1/workshopAdminAdd',
      method: 'post',
      data
    })
  },
  delOtherAdmin(data) {
    return request({
      url: '/v1/workshopAdminDel',
      method: 'post',
      data
    })
  }
}
